<style>

.banner-wrap {
   
    position: relative;
    top: 0;
    left: 0;
    _zoom: 1;
   margin-top: 10px;
   margin-bottom: 10px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none；
}
#nonegg{display:none;}
.adtitle {position:absolute;top:0px;left:0px; background-color: #5FB878; color: #fff;}
.adtitle a {color: #fff;text-decoration: underline;margin-left: 5px;}
 
</style>

    <div id="adimg">
	<div class="adtitle">
	 下方广告将在<font id="adtime">{:C('wkcms_score_pay.adtime')}</font>秒后消失 
	 
	<a href="{:U('user/login')}" target="_blank"><font>注册或登录后，去掉广告</font></a> </div>
	
	<div class="adhtml">
	<volist name="ad_list" id="ad">
    {$ad.html}
    </volist>
    </div>
    </div>
    
<script>
$(function(){

if ($('#nonegg').length) {
    var width = $("#document").width();

    $(".banner-wrap").css('width', width)
    $("#nonegg").show();
    var adtime=parseInt($('#adtime').text())+1;
    var t;
    t=setInterval(Autogo,1000);

    //clearInterval(t);
    function Autogo(){

        adtime=adtime-1;
        $('#adtime').text(adtime);
        //$('#documentViewer').css('height','0px') ;
        if(adtime ==0){
        clearInterval(t);
        $('#nonegg').hide() ;



    }
    //alert(adtime); 


    }
}


});





</script>